home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10830 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  772 b 

  1. Path: access1.digex.net!not-for-mail
  2. From: ell@access1.digex.net (Ell)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: NEWBIE: Returning 0 as refernce
  5. Date: 10 Mar 1996 21:13:20 GMT
  6. Organization: The Universe
  7. Message-ID: <4hvglg$v4@news4.digex.net>
  8. References: <4huslk$rpk@badger.wmin.ac.uk>
  9. NNTP-Posting-Host: access1.digex.net
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Renato Araujo (tqaec@westminster.ac.uk) wrote:
  13. : I am trying to write bits of Linux in C++. In order to make it fast I try to
  14. : return references instead of pointers (some classes are rather big). But what
  15. : is the standard way of returning a reference when it is not found
  16.  
  17. In C++ both references and pointers are passing by reference.  The 
  18. opposite of those two is copying, or passing by value.
  19.  
  20. Elliott
  21.